<?php
$this->Validation->rules('Producto', array('formId' => 'ProductoEditForm'));
?>

<div>
    <?php echo $this->Form->create('Producto', array('type' => 'file', 'action' => 'edit')); ?>
    <fieldset>
        <div class="titulo">
            <div>Descripción del Producto</div>
        </div>
        
        <?php
        echo $this->Form->input('nombre');
        echo $this->Form->input('categoria_id');
        echo $this->Form->input('precio_dolar', array('options' => p_sino(false)));
        echo $this->Form->input('precio');
        echo $this->Form->input('descripcion', array('type' => 'textarea', 'label' => 'Descripción'));
        echo $this->Form->input('imagen', array('type' => 'file'));
        echo $this->Form->input('id', array('type' => 'hidden'));
        ?>
    </fieldset>

    <?php echo $this->Form->end(__('Enviar')); ?>
</div>

<div id="dialog-modal-errores"></div>